function quickSort<T>(arr:any[]):T[]{
    const {length} = arr
    if(length<=1){
        return arr
    }
    let pivot:any = arr[0]
    let left  = [];
    let right = [];
    for(let i=1;i<length;i++){
        if(pivot.zongAccounts<=arr[i].zongAccounts){
            right.push(arr[i]) 
        }else{
            left.push(arr[i]) 
        }
    }
    console.log(left,right)
    let l = quickSort<T>(left) ;
    let r = quickSort<T>(right) 
    return r.concat(pivot).concat(l) 
}

export default quickSort
